package com.m.man.web.controller;

import com.m.man.web.dao.SysUserMapper;
import com.m.man.web.model.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
//import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mycode/Sys")
public class SysUserController {

    @Autowired
    SysUserMapper sysUserMapper;

    @RequestMapping("/register")
    public String register(@RequestBody SysUser user){
//        PasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
//        String encodePassword = passwordEncoder.encode(user.getPassword());
//        user.setPassword(encodePassword);
//        sysUserMapper.insert(user);
//        return "注册完成！";
        return "";
    }
}
